\hypertarget{classduye_1_1_condition}{\section{duye\-:\-:Condition Class Reference}
\label{classduye_1_1_condition}\index{duye\-::\-Condition@{duye\-::\-Condition}}
}


{\ttfamily \#include $<$duye\-\_\-condition.\-h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
bool \hyperlink{classduye_1_1_condition_a368121d1b3128cf323d46fcc1c5db41b}{signal} ()
\begin{DoxyCompactList}\small\item\em wake up the waitting thread, only wake up one thread, according to the thread priority and waitting time. \end{DoxyCompactList}\item 
bool \hyperlink{classduye_1_1_condition_a914d5e68725357ecb554cb7925a2510a}{broadcast} ()
\begin{DoxyCompactList}\small\item\em wake up all waitting threads \end{DoxyCompactList}\item 
bool \hyperlink{classduye_1_1_condition_a7be83488713d406175d1c6fd19d60257}{wait} ()
\begin{DoxyCompactList}\small\item\em let current thread has reached the awaited state, utill be wake up \end{DoxyCompactList}\item 
bool \hyperlink{classduye_1_1_condition_a4d83af94c047b32b8a360b86d9144986}{wait} (const uint32 timeout)
\begin{DoxyCompactList}\small\item\em let current thread has reached the awaited state, utill be wake up or timeout return \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
P\-O\-S\-I\-X condition wrapper 

\subsection{Member Function Documentation}
\hypertarget{classduye_1_1_condition_a914d5e68725357ecb554cb7925a2510a}{\index{duye\-::\-Condition@{duye\-::\-Condition}!broadcast@{broadcast}}
\index{broadcast@{broadcast}!duye::Condition@{duye\-::\-Condition}}
\subsubsection[{broadcast}]{\setlength{\rightskip}{0pt plus 5cm}bool duye\-::\-Condition\-::broadcast (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classduye_1_1_condition_a914d5e68725357ecb554cb7925a2510a}


wake up all waitting threads 

\begin{DoxyReturn}{Returns}
true/false 
\end{DoxyReturn}
\begin{DoxyNote}{Note}

\end{DoxyNote}
\hypertarget{classduye_1_1_condition_a368121d1b3128cf323d46fcc1c5db41b}{\index{duye\-::\-Condition@{duye\-::\-Condition}!signal@{signal}}
\index{signal@{signal}!duye::Condition@{duye\-::\-Condition}}
\subsubsection[{signal}]{\setlength{\rightskip}{0pt plus 5cm}bool duye\-::\-Condition\-::signal (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classduye_1_1_condition_a368121d1b3128cf323d46fcc1c5db41b}


wake up the waitting thread, only wake up one thread, according to the thread priority and waitting time. 

\begin{DoxyReturn}{Returns}
true/false 
\end{DoxyReturn}
\begin{DoxyNote}{Note}

\end{DoxyNote}
\hypertarget{classduye_1_1_condition_a7be83488713d406175d1c6fd19d60257}{\index{duye\-::\-Condition@{duye\-::\-Condition}!wait@{wait}}
\index{wait@{wait}!duye::Condition@{duye\-::\-Condition}}
\subsubsection[{wait}]{\setlength{\rightskip}{0pt plus 5cm}bool duye\-::\-Condition\-::wait (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classduye_1_1_condition_a7be83488713d406175d1c6fd19d60257}


let current thread has reached the awaited state, utill be wake up 

\begin{DoxyReturn}{Returns}
true/false 
\end{DoxyReturn}
\begin{DoxyNote}{Note}

\end{DoxyNote}
\hypertarget{classduye_1_1_condition_a4d83af94c047b32b8a360b86d9144986}{\index{duye\-::\-Condition@{duye\-::\-Condition}!wait@{wait}}
\index{wait@{wait}!duye::Condition@{duye\-::\-Condition}}
\subsubsection[{wait}]{\setlength{\rightskip}{0pt plus 5cm}bool duye\-::\-Condition\-::wait (
\begin{DoxyParamCaption}
\item[{const uint32}]{timeout}
\end{DoxyParamCaption}
)}}\label{classduye_1_1_condition_a4d83af94c047b32b8a360b86d9144986}


let current thread has reached the awaited state, utill be wake up or timeout return 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em timeout} & \-: waitting timeout, unit millisecond \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true/false 
\end{DoxyReturn}
\begin{DoxyNote}{Note}

\end{DoxyNote}


The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
Z\-:/duye/src/duyebase/system/\hyperlink{duye__condition_8h}{duye\-\_\-condition.\-h}\end{DoxyCompactItemize}
